import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import "normalize.css"; //格式化样式，去除原本的仰视结构
import "./assets/styles/sidebar.css"; // 全局侧边栏样式

const app = createApp(App);

// 注册所有图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

app.use(router);
app.use(ElementPlus);
document.title = "铁岭电网无人机管理平台";
app.mount("#app");
